import type { StyleSpecification } from 'mapbox-gl';

//gis 加载默认地图
export const defaultGisStyle: StyleSpecification = {
    version: 8,
    sources: {
        m_mono: {
            type: 'raster',
            // tiles: ['/tile/{z}/{x}/{y}.png'],
            tiles: ['/tile/{z}/{x}/{y}.jpg'],

            tileSize: 256,
            attribution: '',
        },
    },
    // sprite: "http://192.168.138.172:8086/static/admin/mapboxoffline/images/sprite", //图标
    glyphs: '../../static/glyphs/{fontstack}/{range}.pbf',
    layers: [
        {
            id: 'm_mono',
            type: 'raster',
            source: 'm_mono',
            minzoom: 0,
            maxzoom: 18,
        },
    ],
};